import Layout from "@/layout/index.vue";

export const redTemplateRoutes = [
    {
        path: '/document',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['doc:redSheetTemplate:update'],
                path: 'redSheetTemplate/view/:templateId(\\d+)',
                component: () => import('@/views/document/redSheetTemplate/templateView.vue'),
                name: 'RedSheetTemplateView',
                meta: { title: '套红模板详情', activeMenu: '/document/redSheetTemplate' }
            }
        ]
    },
    {
        path: '/document',
        hidden: true,
        children: [
            {
                path: 'redSheetTemplate/openFile/:templateId(\\d+)',
                component: () => import('@/views/document/redSheetTemplate/templateFile.vue'),
                name: 'RedSheetTemplateWordView',
                meta: { title: '套红模板正文' }
            }
        ]
    }
]